﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.Reflection;
using Beeldbankmvc.ViewModels;

namespace Beeldbankmvc.Models
{
    public partial class BeeldbankLinqDataContext : System.Data.Linq.DataContext
    {
        partial void OnCreated()
        {
            //Put your desired timeout here.
            this.CommandTimeout = 3600;
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_DYNAMIC")]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_REGIO))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_TECHNIEK))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_RIVIERGEBIED))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_PROJECT))]
        [ResultType(typeof(BEELDBANK_TYPE))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_RESULT))]
        [ResultType(typeof(BEELDBANK_COLLECTION))]
        public IMultipleResults BEELDBANK_CUSTOM_WORD_SEARCH_DYNAMIC([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(7000)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(200)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "StatusId", DbType = "Int")] System.Nullable<int> statusId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "IDOnlyQuery", DbType = "Bit")] System.Nullable<int> IDOnlyQuery, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RWSonly", DbType = "Bit")] System.Nullable<int> RWSonly, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowAll", DbType = "Bit")] System.Nullable<int> ShowAll, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowMyItems", DbType = "VarChar(200)")] string showMyItems, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowMyItemsID", DbType = "VarChar(200)")] string showMyItemsID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RegioFacet", DbType = "Int")] System.Nullable<int> regioFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TechniekFacet", DbType = "Int")] System.Nullable<int> techniekFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RiviergebiedFacet", DbType = "Int")] System.Nullable<int> riviergebiedFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ProjectFacet", DbType = "Int")] System.Nullable<int> projectFacet)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, statusId, rowsReturned, IDOnlyQuery, RWSonly, ShowAll, showMyItems, showMyItemsID, regioFacet, techniekFacet, riviergebiedFacet, projectFacet);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(9)));
            return ((IMultipleResults)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_DYNAMIC_FAST")]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_REGIO))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_TECHNIEK))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_RIVIERGEBIED))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_PROJECT))]
        [ResultType(typeof(BEELDBANK_TYPE))]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT_FACETS_RESULT))]
        [ResultType(typeof(BEELDBANK_COLLECTION))]
        public IMultipleResults BEELDBANK_CUSTOM_WORD_SEARCH_DYNAMIC_FAST([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(7000)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(200)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "StatusId", DbType = "Int")] System.Nullable<int> statusId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "IDOnlyQuery", DbType = "Bit")] System.Nullable<int> IDOnlyQuery, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RWSonly", DbType = "Bit")] System.Nullable<int> RWSonly, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowAll", DbType = "Bit")] System.Nullable<int> ShowAll, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowMyItems", DbType = "VarChar(200)")] string showMyItems, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ShowMyItemsID", DbType = "VarChar(200)")] string showMyItemsID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RegioFacet", DbType = "Int")] System.Nullable<int> regioFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TechniekFacet", DbType = "Int")] System.Nullable<int> techniekFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RiviergebiedFacet", DbType = "Int")] System.Nullable<int> riviergebiedFacet, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "ProjectFacet", DbType = "Int")] System.Nullable<int> projectFacet)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, statusId, rowsReturned, IDOnlyQuery, RWSonly, ShowAll, showMyItems, showMyItemsID, regioFacet, techniekFacet, riviergebiedFacet, projectFacet);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(9)));
            return ((IMultipleResults)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE")]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT))]
        [ResultType(typeof(BEELDBANK_STATUS))]
        public IMultipleResults BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(400)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(20)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "StatusId", DbType = "Int")] System.Nullable<int> statusId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, statusId, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(9)));
            return ((IMultipleResults)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE_BY_USERID")]
        [ResultType(typeof(BEELDBANK_MEDIAOBJECT))]
        [ResultType(typeof(BEELDBANK_STATUS))]
        public IMultipleResults BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE_BY_USERID([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(400)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(20)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "StatusId", DbType = "Int")] System.Nullable<int> statusId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "UserID", DbType = "VarChar(200)")] string userID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, statusId, userID, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(10)));
            return ((IMultipleResults)(result.ReturnValue));
        }
        
        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE_KEY_WORDS_ONLY")]
        public ISingleResult<BEELDBANK_MEDIAOBJECT> BEELDBANK_CUSTOM_WORD_SEARCH_ALSO_NON_VISIBLE_KEY_WORDS_ONLY([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(7000)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(200)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(8)));
            return ((ISingleResult<BEELDBANK_MEDIAOBJECT>)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH")]
        public ISingleResult<BEELDBANK_MEDIAOBJECT> BEELDBANK_CUSTOM_WORD_SEARCH([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(400)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(20)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(8)));
            return ((ISingleResult<BEELDBANK_MEDIAOBJECT>)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_METRO_TOPMEDIA")]
        public ISingleResult<BeeldbankMediaObjectCollection> BEELDBANK_CUSTOM_WORD_SEARCH_METRO_TOPMEDIA([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(150)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "typeId", DbType = "Int")] System.Nullable<int> typeId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeId, rowsReturned, orderBy);
            return ((ISingleResult<BeeldbankMediaObjectCollection>)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_METRO_SIMPEL")]
        public ISingleResult<BeeldbankMediaObjectCollection> BEELDBANK_CUSTOM_WORD_SEARCH_METRO_SIMPLE([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(400)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(20)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(8)));
            return ((ISingleResult<BeeldbankMediaObjectCollection>)(result.ReturnValue));
        }

        /*
        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH")]
        public ISingleResult<BEELDBANK_MEDIAOBJECT> BEELDBANK_CUSTOM_WORD_SEARCH([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(400)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "TypeList", DbType = "VarChar(20)")] string typeList, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtFrom, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType = "DateTime")] System.Nullable<System.DateTime> dtTo, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageIndex", DbType = "Int")] System.Nullable<int> pageIndex, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "PageSize", DbType = "Int")] System.Nullable<int> pageSize, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "CollectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] ref System.Nullable<int> rowsReturned)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeList, dtFrom, dtTo, pageIndex, pageSize, orderBy, collectionId, rowsReturned);
            rowsReturned = ((System.Nullable<int>)(result.GetParameterValue(8)));
            return ((ISingleResult<BEELDBANK_MEDIAOBJECT>)(result.ReturnValue));
        }
         */ 



        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_METRO_MEDIA")]
        public ISingleResult<BeeldbankMediaObjectCollection> BEELDBANK_CUSTOM_WORD_SEARCH_METRO_MEDIA([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "SearchCriteria", DbType = "VarChar(150)")] string searchCriteria, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "typeId", DbType = "Int")] System.Nullable<int> typeId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), searchCriteria, typeId, rowsReturned, orderBy);
            return ((ISingleResult<BeeldbankMediaObjectCollection>)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_METRO_THEMEMEDIA")]
        public ISingleResult<BeeldbankMediaObjectCollection> BEELDBANK_CUSTOM_WORD_SEARCH_METRO_THEMEMEDIA([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "collectionId", DbType = "Int")] System.Nullable<int> collectionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "typeId", DbType = "Int")] System.Nullable<int> typeId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), collectionId, typeId, rowsReturned, orderBy);
            return ((ISingleResult<BeeldbankMediaObjectCollection>)(result.ReturnValue));
        }

        [global::System.Data.Linq.Mapping.FunctionAttribute(Name = "dbo.BEELDBANK_CUSTOM_WORD_SEARCH_METRO_NEWMEDIA")]
        public ISingleResult<BeeldbankMediaObjectCollection> BEELDBANK_CUSTOM_WORD_SEARCH_METRO_NEWMEDIA([global::System.Data.Linq.Mapping.ParameterAttribute(Name = "RowsReturned", DbType = "Int")] System.Nullable<int> rowsReturned, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "OrderBy", DbType = "TinyInt")] System.Nullable<byte> orderBy, [global::System.Data.Linq.Mapping.ParameterAttribute(Name = "typeId", DbType = "Int")] System.Nullable<int> typeId)
        {
            IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), rowsReturned, orderBy, typeId);
            return ((ISingleResult<BeeldbankMediaObjectCollection>)(result.ReturnValue));
        }

    }
}